@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

/**
字体相关样式
 */
.text-left {
  text-align: left
}

.text-center {
  text-align: center
}

.text-right {
  text-align: right
}

.text-justify {
  text-align: justify
}

.text-large {
  font-size: 24px
}

.text-big {
  font-size: 16px
}

.text-default {
  font-size: 14px
}

.text-small {
  font-size: 12px
}

.text-little {
  font-size: 10px
}

.padding-large {
  padding: 30px
}

.padding-large-top {
  padding-top: 30px
}

.padding-large-right {
  padding-right: 30px
}

.padding-large-bottom {
  padding-bottom: 30px
}

.padding-large-left {
  padding-left: 30px
}

.padding-big {
  padding: 20px
}

.padding-big-top {
  padding-top: 20px
}

.padding-big-right {
  padding-right: 20px
}

.padding-big-bottom {
  padding-bottom: 20px
}

.padding-big-left {
  padding-left: 20px
}

.padding {
  padding: 10px
}

.padding-top {
  padding-top: 10px
}

.padding-right {
  padding-right: 10px
}

.padding-bottom {
  padding-bottom: 10px
}

.padding-left {
  padding-left: 10px
}

.padding-small {
  padding: 5px
}

.padding-small-top {
  padding-top: 5px
}

.padding-small-right {
  padding-right: 5px
}

.padding-small-bottom {
  padding-bottom: 5px
}

.padding-small-left {
  padding-left: 5px
}

.padding-little {
  padding: 2px
}

.padding-little-top {
  padding-top: 2px
}

.padding-little-right {
  padding-right: 2px
}

.padding-little-bottom {
  padding-bottom: 2px
}

.padding-little-left {
  padding-left: 2px
}

.margin-large {
  margin: 30px
}

.margin-large-top {
  margin-top: 30px
}

.margin-large-right {
  margin-right: 30px
}

.margin-large-bottom {
  margin-bottom: 30px
}

.margin-large-left {
  margin-left: 30px
}

.margin-big {
  margin: 20px
}

.margin-big-top {
  margin-top: 20px
}

.margin-big-right {
  margin-right: 20px
}

.margin-big-bottom {
  margin-bottom: 20px
}

.margin-big-left {
  margin-left: 20px
}

.margin {
  margin: 10px !important;
  clear: both
}

.margin-top {
  margin-top: 10px
}

.margin-right {
  margin-right: 10px
}

.margin-bottom {
  margin-bottom: 10px
}

.margin-left {
  margin-left: 10px
}

.margin-small {
  margin: 5px
}

.margin-small-top {
  margin-top: 5px
}

.margin-small-right {
  margin-right: 5px
}

.margin-small-bottom {
  margin-bottom: 5px
}

.margin-small-left {
  margin-left: 5px
}

.margin-little {
  margin: 2px
}

.margin-little-top {
  margin-top: 2px
}

.margin-little-right {
  margin-right: 2px
}

.margin-little-bottom {
  margin-bottom: 2px
}

.margin-little-left {
  margin-left: 2px
}

.table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0
}

.table th {
  border-bottom: 2px solid #ddd;
  vertical-align: bottom;
  padding: 8px;
  text-align: left
}

.table td {
  border-top: 1px solid #ddd;
  padding: 8px;
  vertical-align: top
}

.table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {
  background-color: #f9f9f9
}

.table-bordered th, .table-bordered td {
  border: solid 1px #ddd
}

.table-bordered th {
  border-bottom: 2px solid #ddd
}

.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th {
  background-color: #f5f5f5
}

.table-condensed th, .table-condensed td {
  padding: 5px
}

@media (max-width: 760px) {
  .table-responsive {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar
  }

  .table-responsive .table tr th, .table-responsive .table tr td {
    white-space: nowrap
  }
}

@media only screen and (max-width: 760px) {
  .table-responsive-y table, .table-responsive-y thead, .table-responsive-y tbody, .table-responsive-y th, .table-responsive-y td, .table-responsive-y tr {
    display: block
  }

  .table-responsive-y thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px
  }

  .table-responsive-y tr {
    border: 1px solid #ccc
  }

  .table-responsive-y td {
    border: 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30%;
    white-space: normal;
    text-align: left
  }

  .table-responsive-y td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold
  }

  .table-responsive-y td:before {
    content: attr(data-title)
  }
}


//修改element默认的一些样式
.el-alert{
  padding: 16px;

  .el-alert__closebtn{
    top: 20px;
  }
}
.el-pagination{
  text-align: center;
}

.el-select{
  width: 100%;
}

.bind-detail{
  width: 770px;
  margin: 48px auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

.bg-success{
  background: #67C23A;
  color: white;
}
.bg-blue{
  background:#409EFF;
  color: white;
}
.bg-danger{
  background:#F56C6C;
  color: white;
}
.bg-info{
  background:#909399;
  color: white;
}

@media (max-width:768px) {
  .el-message-box{
    width: 90%;
  }
  .bind-detail{
    width: 100%;
  }
  .el-dialog{
    width: 90%;
  }
}



